package com.wzq.service.impl;

import com.wzq.dao.ResumeRepository;
import com.wzq.entity.Resume;
import com.wzq.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wzq.Jolin
 * @company none
 * @create 2020-07-14 19:41
 */
@Service
public class ResumeServiceImpl  implements ResumeService {

    @Autowired
    private ResumeRepository resumeRepository;


    @Override
    public List<Resume> queryAll() {
        return resumeRepository.findAll();
    }

    @Override
    public Resume saveResume(Resume r) {
        return resumeRepository.save(r);
    }

    @Override
    public void deleteResume(long id) {
        resumeRepository.deleteById(id);
    }


}
